import * as TypeORM from "typeorm";
import Model from "./common";

@TypeORM.Entity()
export default class PendingUser extends Model {
  @TypeORM.Index()
  @TypeORM.PrimaryColumn({type: "varchar", length: 80 })
  username: string;

  @TypeORM.Column({type: "varchar", length: 120 })
  password: string;

  @TypeORM.Column({type: "text" })
  nameplate: string;

  @TypeORM.Column({type: "integer" })
  sex: number;

  @TypeORM.Column({type: "varchar", length: 120 })
  email: string;
}